#!/bin/bash
# Author： Syuan-Rong Chen
# E-mail： calvin.atx@gmail.com
# Blog：   http://calvinit.blogspot.com
# Date : 20100818
#
# <description>
# Copyright (C) <year>  <name> <email>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see .
#
me=ns.sh
. /usr/cbin/c/lang.sh
. /usr/cbin/d-cmis/$lang $me

function outputMenu {

echo -e '\E[1;33m'$opmtitle; tput sgr0
echo ""
echo -e '\E[1;32m'$opmsub; tput sgr0
echo ""
echo "[1] "$opm_text1
echo "[2] "$opm_text2
echo "[3] "$opm_text3
echo "[4] "$opm_text4
echo "[5] "$opm_text5
echo "[6] "$opm_text6
echo "[7] "$opm_text7
echo "[8] "$opm_text8
echo "[9] "$opm_text9
echo ""
echo "[0] "$opm_text0

echo ""
echo -ne $select0
read USERCHOICE
clear

case $USERCHOICE in
	"1") . /usr/cbin/d-cmis/nat.sh ;;
	"2") . /usr/cbin/d-cmis/router.sh ;;
	"3") . /usr/cbin/d-cmis/dhcp.sh ;;
	"4") . /usr/cbin/d-cmis/dns.sh ;;
	"5") . /usr/cbin/d-cmis/samba.sh ;;
	"6") . /usr/cbin/d-cmis/firewall ;;
	"7") . /usr/cbin/d-cmis/apache.sh ;;
	"8") . /usr/cbin/d-cmis/mail.sh ;;
	"9") . /usr/cbin/d-cmis/clamav.sh ;;
	"0") . /usr/cbin/d-cmis/main.sh ;;
        *) echo $select1;;
esac
}

. /usr/cbin/c/domenu.sh
